/**
 * v-removeBtn
 * Copyright (c) 2019
 */

export default {
  mounted(el, binding) {
    const { value } = binding
    if (value) {
      el.parentNode && el.parentNode.removeChild(el)
    }
  },
  updated(el, binding) {
    const { value } = binding
    if (value) {
      el.parentNode && el.parentNode.removeChild(el)
    }
  },
}
